<template>
  <div class="player-info">
    <div class="box-title">
      <div class="team-name">
        <span>{{players.teamName}}</span>
      </div>
      <div class="player-status">
        <img src="../../../../../assets/image/players/playerInfo.png" alt="">
        <span>球员资料</span>
      </div>
    </div>
    <right-table
      @showDrawer="secondDrawer"
     :players="players"
    >
    </right-table>
  </div>
</template>

<script>
  import RightTable from "../../../table/RightTable";
  export default {
    name: "SecondPlayer",
    props:{
      players:{
        type:Object,
        default(){
          return{}
        }
      },
    },
    components:{
      RightTable
    },
    methods:{
      secondDrawer(){
        this.$emit("secondDrawer")
      }
    }
  }
</script>

<style scoped>
  .player-info {
    position: absolute;
    top:25px;
    left:1275px;
    width: 500px;
    height: 930px;
    border-radius: 12px;
    overflow: hidden;
    background-color:#4f4f4f;
  }
  .box-title {
    position: relative;
    width: 500px;
    height: 62px;
    background-color: #4b4b4b;
  }
  .player-status {
    position: absolute;
    right: 20px;
    width: 140px;
    height: 62px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /*background-color: red;*/
  }
  .team-name {
    position: absolute;
    left: 10px;
    width: 160px;
    height: 62px;
    text-align: center;
    line-height: 62px;
    /*background-color: red;*/
  }
  img {
    width: 30px;
  }
  span {
    color: #69c0ff;
    font-size: 24px;
  }
</style>
